#ifndef SIPSRVLISTTRANS_HPP__
#define SIPSRVLISTTRANS_HPP__

#include "SipResipConfigure.hpp"
#include "SipSrvTransaction.hpp"

#include "resip/stack/SipMessage.hxx"

namespace wtsip{


class RESIP_PUBLIC CSipSrvListTrans: public CSipSrvTransaction
{
public:
    CSipSrvListTrans(SipMessage& request, CSipUserAgent& ua);

    virtual ~CSipSrvListTrans(void);

    virtual bool send(std::auto_ptr<SipMessage> msg);

    virtual bool processIncoming(SipMessage* msg);

    virtual bool processTimeOut(ApplicationMessage* msg);

    virtual SipMessage* createResponse(int code);

    bool canDestroy();

private:

    bool m_beDestroyed;

    SipMessage* m_resp;
};


}//namespace

#endif


